// AnGinaRegDlg.h : header file
//

#if !defined(AFX_ANGINAREGDLG_H__AD54BA5F_B730_4AE0_961E_0A91AC3E5A13__INCLUDED_)
#define AFX_ANGINAREGDLG_H__AD54BA5F_B730_4AE0_961E_0A91AC3E5A13__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000



/////////////////////////////////////////////////////////////////////////////
// CAnGinaRegDlg dialog

class CAnGinaRegDlg : public CDialog
{
// Construction
public:
	CAnGinaRegDlg(CWnd* pParent = NULL);	// standard constructor
	void GetSystemUser();
	SCapParam m_capParam;
	CCapture* m_pCap[2];
	static UINT VideoThreadProc(LPVOID lpVoid);
	void ProcessCurrFrame();
	BYTE* m_pFaceShowBuf;
	int m_nAddCount;
	int m_nMaxFace;
	CImageList m_FaceImageList;
	CDWordArray m_GrayBufInfoArray;
	CDWordArray m_Feature;
	void OnAutoSelect();
	int g_nFeatureNum;
	BOOL g_bSetFeature;
	CButtonST m_Save;
	CButtonST m_Cancel;
	CButtonST m_GetFace;
//	CButtonST m_Process;
private:
	CWinThread* m_pCapThread;
	BOOL m_bCapThreadExit;
	HWND m_hIrCamWnd;//m_hPopCamWnd;
	CDWordArray m_GoodFaceIndexArray;
// Dialog Data
	//{{AFX_DATA(CAnGinaRegDlg)
	enum { IDD = IDD_ANGINAREG_DIALOG };
	CProgressCtrl	m_FeatureProcess;
	CComboBox	m_DoMain;
	CComboBox	m_UserName;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAnGinaRegDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CAnGinaRegDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSelchangeUsername();
	afx_msg void OnGetface();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ANGINAREGDLG_H__AD54BA5F_B730_4AE0_961E_0A91AC3E5A13__INCLUDED_)
